<template>
  <div>
    <h3>组件1</h3>
    资产：{{ car }} ,{{ money }}万元
  </div>
</template>
<script setup>
import { ref, provide, reactive } from "vue";
let car = reactive("奔驰");
const money = ref(100);
provide("car", car);
</script>
<style lang="less" scoped>
div {
  background-color: #cbdbeb;
  padding: 20px;
}
</style>
